//引入子组件
import MyButton from "./compontents/myButton"
//创建一个根组件
export default {
    data() {
        return {
            msg: '大白(●—●)',
            count: 0
        }
    },
    //注册子组件
    components: {
        MyButton
    },
    //直接在编写模板中编写运行效率会下降
    //在编写模板中编写没有代码提示
    template:
        `<h1>{{msg}}</h1>
    <MyButton></MyButton>
    <MyButton></MyButton>
    <MyButton></MyButton>`
}
